﻿@model IEnumerable<CategoryWrapper>
<ul class="d-horizontal-list">
    <li>
        @Ajax.Dna().Link("javascript:void(0);").LocText("publishing", "FiledUnder").ImageIcons(Url.Content("~/Content/Images/icon_cat_16.gif")).GetHtml()
    </li>
    @foreach (var cat in Model)
    { 
        <li>
            @if (cat.IsRoot)
            {
                @Ajax.Dna().Link(cat.PermaLink).LocText("publishing", "Uncategorized").GetHtml()
            }
            else
            {
                @Ajax.Dna().Link(cat.PermaLink).Text(cat.Title).GetHtml()
            }
        </li>
    }
</ul>
